<div id="foot">
  <div class="bottom">        {dede:field name='typeid' runphp='yes'}
		global $dsql;
		$typeid = @me;
		$query = "SELECT topid, content FROM dede_arctype where id = $typeid";
		$rs = $dsql->GetOne($query);
		$cur_id = $rs['topid'];
		
		if(0 == $cur_id){
			$web_title = $rs['content'];
		} else {
			$query = "SELECT content FROM dede_arctype where id = $cur_id";
			$rs = $dsql->GetOne($query);
			$web_title = $rs['content'];
		}
		
		@me = $web_title;
		{/dede:field}  </div>
</div>